package com.atguigu.base;

import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author: 翟文海
 * @Date: 2022/10/26/026 11:38
 * @Version: 1.0
 * @Description: 让代码更简洁
 **/

public interface BaseMapper<T> {
    List<T> findAll();

    void insert(T t);

    T getById(Long id);

    void update(T t);

    void delete(Long id);

    Page<T> findPage(Map<String, String> filters);
}
